import axios from '@/libs/api.request'

export class FinanceTreatmentPayableApi {
  // 待遇应付账单
  static getTreatmentPayableList (params) {
    return axios.request({
      url: '/FinanceTreatmentPayable/GetTreatmentPayableList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 申请付款
  static applyPay (params) {
    return axios.request({
      url: '/FinanceTreatmentPayable/ApplyPay',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取付款信息列表
  static getPayList (params) {
    return axios.request({
      url: '/FinanceTreatmentPayable/GetPayList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 删除付款申请
  static deletePayApply (params) {
    return axios.request({
      url: '/FinanceTreatmentPayable/DeletePayApply',
      method: 'DELETE',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 待遇付款确认
  static confirmPay (params) {
    return axios.request({
      url: '/FinanceTreatmentPayable/ConfirmPay',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 待遇应付账单处理（驳回|退回）
  static back (params) {
    return axios.request({
      url: '/FinanceTreatmentPayable/Back',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }
}
